package Java8_26;

public class Zhandouji extends Plane1{
    private int daodan;

    public Zhandouji(String weight, String height,int daodan) {
        super(weight, height);
        this.daodan = daodan;
    }
    public int getBullet() {
        return daodan;
    }

    public void setBullet(int daodan) {
        this.daodan = daodan;
    }
    public void lunch(Pilot p){
        System.out.println(p.getName()+"驾驶战斗机，导弹数为"+daodan);
    }

    public void circle(Pilot p){
        System.out.println(p.getName()+"低空盘旋");
    }
    public void takeOff(Pilot p) {
        System.out.println(p.getName()+"起飞");
    }
    public void speed(Pilot p) {
        System.out.println(p.getName()+"加速");
    }
    public void land(Pilot p) {
        System.out.println(p.getName()+"降落");
    }
}
